package com.zzw.gatewayfilter.tokenfilter;

import reactor.core.publisher.Mono;

/**
 * @author Administrator
 */
public interface TokenFilter {

    Mono<Response> isAllowed(String requestHeaderName);

    class Response {
        private boolean allowed;

        public Response(boolean allowed) {
            this.allowed = allowed;
        }

        public boolean isAllowed() {
            return allowed;
        }

        public void setAllowed(boolean allowed) {
            this.allowed = allowed;
        }
    }
}
